﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[System.Serializable]
public class Save
{
    public uint[] map;
    public float[] hp;
    public int width;
    public int height;
    public EnterPos enterPos;
    public PlayerPos playerPos;
    public GoalPos goalPos;
    public int wave;
    public float AP;
    public float money;
    public float JOJOhp;
    public float JOJOMaxhp;
    public List<SoldierData> data;
    public List<SoldierData> template;
    public List<BuffList> bufflist;
    public List<BuffInfo> JOJObuff;
    public int soldierTag;
    /* 
     * 行动力
     * 金钱
     * JOJO信息
     * 敌人生成池
     * 敌人预备池
    */
}
 public struct EnterPos
{
    public int x;
    public int y;
}
public struct PlayerPos
{
    public float x;
    public float y;
}
public struct GoalPos
{
    public float x;
    public float y;
}

public class BuffList
{
    public BuffInfo[] buff;
    public int length;
    public BuffList()
    {
        buff = null;
        length = 0;
    }
    public BuffList(List<BuffInfo> lbi, int l)
    {
        buff = new BuffInfo[l];
        for (int i = 0; i < l; i++)
            buff[i] = lbi[i];
        length = l;
    }
}
